package com.itheima.service.impl;

import com.itheima.domain.User;
import com.itheima.service.UserService;
import org.apache.dubbo.config.annotation.DubboService;

@DubboService(timeout = 3000, retries = 0)
public class UserServiceImpl implements UserService {


    @Override
    public User findById(Integer id) {

//        try {
//            Thread.sleep(3000);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }

        return new User(id, "jack", 18);
    }
}
